package com.qianfeng.zhangwei.windowmanager;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.qianfeng.zhangwei.R;

/**
 * add()
 * update
 * remove()
 * Content
 */
public class WMActivity extends AppCompatActivity {
    private Button startBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wm);
        WindowManagerUtils.getInstance().show();
        startBtn = (Button) this.findViewById(R.id.start);
        startBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(WMActivity.this, TestActivity.class));
            }
        });
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
        WindowManagerUtils.getInstance().cancel();


    }
}
